home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / virus / hmvs104e.zip / HMVS.TXT < prev    next >
Text File  |  1996-09-24  |  13KB  |  293 lines

  1.  
  2.         ┌──────────────────────────────────────────────────────────┐
  3.         │          Heuristic Macro Virus Scanner/cleaner           │
  4.         │                      (user's manual)                     │
  5.         │                                                          │
  6.         │           (c) Jan Valky & Lubos Vrtik, Slovakia          │
  7.         └──────────────────────────────────────────────────────────┘
  8.  
  9.                            Last update: 24-sep-96
  10.  
  11. Sorry, this is only short version of DOX, because we're lazzy to
  12. write full DOX :)
  13.  
  14. Excuse us our english plz, it is not our natural language ;(
  15.  
  16. IF YOU WANT HELP US TO IMPROVE HMVS, PLZ SEND US ANY COMMENTS OR IDEAS.
  17. NEW MACRO VIRUSES ARE WELCOMED. SEND US PLZ ALL MACRO VIRUSES HMVS CAN'T
  18. DETECT BY NAME.
  19.  
  20. ══════════════════════════════════════════════════════════════════════════
  21.                                CONTENTS
  22.  
  23. 1.   HOW TO USE HMVS
  24. 2.   METHODS USED IN HMVS
  25. 2.1  Available options, when virus was found
  26. 3.   WHAT IS MACRO VIRUS :)
  27. 4.   HEURISTIC FLAGS DISPLAYED BY HMVS
  28. ══════════════════════════════════════════════════════════════════════════
  29.  
  30. 1.   HOW TO USE HMVS
  31. ──────────────────────────────────────────────────────────────────────────
  32.  
  33. Without paramaters will HMVS scan only *.DOC and *.DOT files in
  34. current directory and all its subdirectories.
  35.  
  36. Usage: HMVS drive:[\\path] switches
  37. switches:
  38. /H,/?        - this help
  39. /ALL         - scan all files (*.*)
  40. /REP         - output to log file HMVS.LOG
  41. /REP=file    - output to specified log file
  42. /NOH         - disable heuristics, only scanning
  43. /NOS         - disable scanning, only heuristics
  44. /MAC         - prompt if file contains macros
  45. /IA          - nonstop scanning without prompt
  46. /CA          - automatically clean all infected files
  47. /RA          - automatically rename all infected files
  48. /NOB         - disable user break with ESC key
  49. /EXT         - decrypt execute only macros (reg. version only)
  50.  
  51. Short description of command line parameters:
  52.  
  53. /H
  54. /?           Displays help about HMVS using
  55. /ALL         All files will be scanned (*.*)
  56.              Without this parameter only files *.DOC and *.DOT
  57.              will be scanned.
  58.  
  59. /REP         Report will be logged to file HMVS.LOG
  60.  
  61. /REP=file    Report will be logged to user specified file
  62.  
  63. /NOH         Disables heuristic analysis. Only standard scanning
  64.              method will be used.
  65.  
  66. /NOS         Disables standard scanning method. Only heuristics
  67.              will be used.
  68.              You can use both switch (/NOS /NOH) together :)
  69.              This combination can save your time, if you want get
  70.              informations about macros in file (use also /MAC
  71.              or /REP switch)
  72.  
  73. /MAC         If this switch was entered program will stop at each
  74.              file, that contains one or more macros. Otherwise program
  75.              will stop only when file is infected by known virus,
  76.              when file is probably infected or suspected.
  77.  
  78. /IA          With this option program won't stop on any file.
  79.              You will use probably this option together with /REP
  80.              switch.
  81.  
  82. /CA          If you want to automatically clean any infected
  83.              or probably infected files, use this switch.
  84.              Files will be cleaned only if creating of backup copy
  85.              was succesfull.
  86.  
  87.              WARNING: ALL MACROS WILL BE REMOVED FROM INFECTED FILE
  88.  
  89.              After cleaning you should check if cleaned file is OK.
  90.              If something went wrong, you can restore original
  91.              file from backup copy. If HMVS fails plz send us file, that
  92.              couldn't be cleaned.
  93.  
  94. /RA          With this switch HMVS'll automatically rename any infected
  95.              or probably infected files.
  96.  
  97. /NOB         With this option HMVS can't be stopped with ESC key.
  98.              Otherwise you can break program in any time with pressing
  99.              the ESC key.
  100.  
  101. /EXT         This option allow you to decrypt execute only macros.
  102.              (Available only for registered users). Only macros
  103.              with size bellow 64000 bytes will be decrypted.
  104.              This is nice option for AV researcher or experienced
  105.              users.
  106.  
  107. 2.   METHODS USED IN HMVS
  108. ──────────────────────────────────────────────────────────────────────────
  109.  
  110. When MS Word documents or templates are scanned, HMVS do the following:
  111. - searches for macros in document or template
  112. - decrypts each macro (if encrypted)
  113. - uses standard scan method (only macros are scanned, not whole file !)
  114.   Some antiviral product have problem to detect how and where macros
  115.   are placed, so they must scan whole file :)
  116. - uses heuristics
  117.   Each macro is analysed and checked for some operations. If heuristics
  118.   found some checked operation, it set flag for it.
  119.  
  120. After these operations HMVS displays results of scanning and heuristic
  121. analysis.
  122.  
  123. HSMV uses two methods to detect macro viruses:
  124.  
  125. ■ Standard method based on 'identifications strings'
  126.   This is well know method frequently used in most virus scanners.
  127.   Search string method is fast and reliable, but can search only for
  128.   known viruses.
  129.  
  130. ■ Heuristic analysis
  131.   HMVS uses unique heuristic technology. HMVS uses special semi-emulator
  132.   of word macro commands (something like length disassembler, if you
  133.   know, what is it ...). It trace trough each command in macro,
  134.   step by step, and try to understand it.
  135.  
  136.   WE THINK NO OTHER PRODUCT CAN'T DO THAT YET.
  137.  
  138. Both methods are good. Standard method can detect macro virus exact by
  139. its name, heuristics can detect known and unknown viruses.
  140.  
  141. Good antivirus products can use both methods. With large virus databases
  142. they can reach top hit-rate and they can detect unknown viruses too.
  143.  
  144. Heuristics may produce false positive alarms in same cases. We'we checked
  145. HMVS with some files containing antimacros (for example SCANPROT.DOT).
  146. Because this file contains macros is doing some operations typical for
  147. viruses, this file for HMVS seems to be infected by a macro virus.
  148.  
  149. There is an example of false alarm (file SCANPROT.DOT)
  150.  
  151. Scanning c:\ANTIMACR\SCANPROT.DOT
  152. * document contains 10 macros with total length 46730 bytes
  153. [AUTONEW] [TOOLVER] [AUTOOPEN] [CLEANALL] [AUTOCLOSE] [AUTOEXITSCAN]
  154. [AUTOOPENSCAN] [FILEOPENSCAN] [SHELLOPENSCAN] [INSERTAUTOTEXTINTOMACRO]
  155. ! Copies macros into the template ('MacroCopy')
  156. + Uses the 'FileSaveAs' macro command
  157. + Enables auto macro processing ('DisableAutoMacro')
  158. - Might prevent the ESC key from interrupting a macro ('DisableInput')
  159. + Detects number of macros in template or document ('CountMacros()')
  160. + Detects macros names in template or document ('MacroName$()')
  161. - Sets up a background timer that runs a macro at the specified time ('OnTime')
  162. - Gets parameters from WIN.INI or WINWORD6.INI ('GetProfileString$()')
  163. - Gets parameters from initiating file ('GetPrivateProfileString$()')
  164. - Sets parameters in initiating file ('SetPrivateProfileString$()')
  165. ! Executes other DOS or Windows programs ! ('Shell')
  166. ! Deletes other files ! ('Kill')
  167. ! Writes directly to a sequential file ! ('Print #')
  168. - Changes current directories ('ChDir')
  169. - Opens a sequential file for input or output of text ('Open #')
  170. - Closes an open sequential file ('Close #')
  171. + Makes available a routine stored in DLL or WLL 4 use in a macro ('Declare')
  172. PROBABLY INFECTED WITH A MACRO VIRUS !!!
  173.  
  174. 2.1  Available options, when virus was found
  175. ──────────────────────────────────────────────────────────────────────────
  176.  
  177. If HMVS detect that file is infected, it displays something like
  178. the following example:
  179.  
  180. Scanning c:\HMVS\WORDMAC\XENIXOS.DOC
  181. * document contains 11 macros with total length 31342 bytes
  182. [DROP] [DUMMY] [AUTOEXEC] [AUTOOPEN] [DATEI╓FFNEN] [EXTRASMAKRO]
  183. [DATEIBEENDEN] [DATEIDRUCKEN] [DATEISPEICHERN] [DATEISPEICHERNUNTER] ...
  184. ! Copies macros into the template ('MacroCopy')
  185. + Contains execute-only (encrypted) macros
  186. + Uses the 'FileSaveAs' macro command
  187. + Disables global template write access warnings
  188. + Enables auto macro processing ('DisableAutoMacro')
  189. - Might prevent the ESC key from interrupting a macro ('DisableInput')
  190. + Detects number of macros in template or document ('CountMacros()')
  191. + Detects macros names in template or document ('MacroName$()')
  192. - Gets parameters from WIN.INI or WINWORD6.INI ('GetProfileString$()')
  193. ! Executes other DOS or Windows programs ! ('Shell')
  194. ! Writes directly to a sequential file ! ('Print #')
  195. + Changes DOS attributes of other files ('SetAttr')
  196. - Changes current directories ('ChDir')
  197. - Opens a sequential file for input or output of text ('Open #')
  198. - Closes an open sequential file ('Close #')
  199. + Contains macros but is named *.DOC
  200. Contains virus pattern: <WordMacro:Xenixos> 
  201.  
  202. INFECTED WITH A MACRO VIRUS !!!
  203.  
  204. 1-Skip     2-Remove all macros  3-Rename file   4-Ignore all
  205. 5-Automatically remove all macros  6-Automatically rename all files
  206.  
  207. Now program waits for user input ...
  208.  
  209. Available actions:
  210.  
  211. 1-Skip
  212.   Program will do nothing. It skips this file and will continue searching
  213.   for the next files
  214. 2-Remove all macros
  215.   At first backup copy will be created. Then ALL macros from file
  216.   will be removed (each macro will be overwritten with nice text :)
  217. 3-Rename file
  218.   Renames file to *.VI?
  219. 4-Ignore all
  220.   Do nothing with all files. Like 1, but for any next file
  221. 5-Automatically remove all macros
  222.   Like 2, but for any next file
  223. 6-Automatically rename all files
  224.   Like 3, but for any next file
  225.  
  226. 3.   WHAT ARE MACRO VIRUSES :)
  227. ──────────────────────────────────────────────────────────────────────────
  228.  
  229. If you don't know what are macro viruses, you have big chance to be
  230. a potential victim of macro viruses :)
  231. Don't worry, HMVS is here to solve your problems (we hope ...)
  232.  
  233. 4.   HEURISTIC FLAGS DISPLAYED BY HMVS
  234. ──────────────────────────────────────────────────────────────────────────
  235.  
  236. Current version of HMVS can detect the following flags:
  237. (in next version we plan to add few new flags)
  238.  
  239. ! Copies macros into the template ('MacroCopy')
  240. + Might copy macros to template with using 'Organizer .Copy'
  241. ! Copies macros to template with using 'Organizer .Copy'
  242. ! Adds a template or WLL to the list of global templates ('AddAddIn')
  243. + Contains execute-only (encrypted) macros
  244. + Detects if macro is execute-only ('IsExecuteOnly()')
  245. + Uses the 'FileSaveAs' macro command
  246. + Disables global template write access warnings
  247. + Enables the fast save option 'FastSaves'
  248. - Might enable auto macro processing ('DisableAutoMacro')
  249. + Enables auto macro processing ('DisableAutoMacro')
  250. - Might prevent the ESC key from interrupting a macro ('DisableInput')
  251. + Prevents the ESC key from interrupting a macro ('DisableInput')
  252. + Detects number of macros in template or document ('CountMacros()')
  253. + Detects macros names in template or document ('MacroName$()')
  254. - Sets up a background timer that runs a macro at the specified time ('OnTime')
  255. - Gets parameters from WIN.INI or WINWORD6.INI ('GetProfileString$()')
  256. - Sets parameters in WIN.INI or WINWORD6.INI ('SetProfileString$()')
  257. - Gets parameters from initiating file ('GetPrivateProfileString$()')
  258. - Sets parameters in initiating file ('SetPrivateProfileString$()')
  259. + Removes document protection ('LockDocument')
  260. - Manipulates with protection for form fields
  261. - Removes protection for form fields
  262. - Renames menu items ('RenameMenu')
  263. ! Executes other DOS or Windows programs ! ('Shell')
  264. ! Deletes other files ! ('Kill')
  265. ! Writes directly to a sequential file ! ('Write')
  266. ! Writes directly to a sequential file ! ('Print #')
  267. + Removes directory ('RmDir')
  268. + Changes DOS attributes of other files ('SetAttr')
  269. - Detects number of subdirectories ('CountDirectories')
  270. - Changes current directories ('ChDir')
  271. - Opens a sequential file for input or output of text ('Open #')
  272. - Closes an open sequential file ('Close #')
  273. + Makes available a routine stored in DLL or WLL 4 use in a macro ('Declare')
  274. - Detects environment variable ('Environ$')
  275. + Contains macros but is named *.DOC
  276. - Detect whether the active document was changed ('IsDocumentDirty()')
  277. + Converts document to the template ('FileSaveAs .Format = 1')
  278. + Sets a password for opening the document ('FileSaveAs .Password = ')
  279.  
  280. !   means dangerous operation
  281. +   means warning (suspect)
  282. -   only for your information
  283.  
  284. Sorry, we haven't time to explain these messages. We thinking for AV
  285. researchers and experienced users it is sufficient.
  286.  
  287. We can add detailed descriptions in next release, if we'll get lot of
  288. requests and questions.
  289.  
  290.      ───────────────────────   that's all    ───────────────────────────
  291.  
  292. BTW, We don't like user's manual writting ...
  293.